export default () => {
	return new Promise((resolve, reject) => {
		const script = document.createElement('script')
		script.async = true
		script.src =
			'https://cdn.jsdelivr.net/npm/pdfjs-dist@2.7.570/build/pdf.min.js'
		document.body.appendChild(script)
		script.onload = resolve
		script.onerror = reject
	})
}
